package com.tuniu.agents.message;

import java.util.Map;

/**
 * Message rendering interface
 */
public interface MessageRender {

    /**
     * Render the template
     * @param templateName The name of the template
     * @param model The data
     * @return Rendered template as a String
     */
    String renderTemplate(String templateName, Map<String, Object> model);

    /**
     * Render the template with sub-template name
     * @param templateName The name of the template
     * @param sub The sub-template name, mainly for compatibility with client types, internationalization, etc.
     * @param model The data
     * @return Rendered template as a String
     */
    String renderTemplate(String templateName, Map<String,String> sub, Map<String, Object> model);


    String renderTemplate(String templateName, Map<String, String> sub, Object model);
}
